import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';

import '../common/colors.dart';





class BottomEnterPage extends StatefulWidget {


  VoidCallback voidCallbackEnter;

  BottomEnterPage(this.voidCallbackEnter);

  @override
  State<BottomEnterPage> createState() => _BottomEnterPageState();
}

class _BottomEnterPageState extends State<BottomEnterPage> {
  @override
  Widget build(BuildContext context) {
    return SafeArea(child: Container(
      color: Colors.white,
      width: Get.width,
      // height: 35,
      child: Row(
        children: [
          Expanded(child: TextButton(onPressed: (){
            Get.back();
          }, child: Text('取消',
            style: TextStyle(color: AppColor.smallTextColor),)),),
          Container(
            color: AppColor.lineColor,
            width: 0.5,
            height: 20,
          ),
          Expanded(child: TextButton(onPressed: (){
            widget.voidCallbackEnter();
          }, child: Text('发布',style: TextStyle(color: AppColor.themeColor),)),)
        ],
      ),
    ));
  }
}
